﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FirstTry.DB;
using FirstTry.Model;

namespace FirstTry.CTR
{
    public class LeasedCtr
    {
         
       private DBLeased dbl = new DBLeased();
       private DBTest dbt = new DBTest();

       public LeasedCtr()
       {

       }
        

       public List<Leased> getLeased()
       {

           return dbl.getAllLeased();

       }

       public Leased getLeasedByID(String ID)
       {
           return dbl.getLeasedByID(ID);
        }

       public Leased addLeased(Leased l)
       {
           
           Leased leased = new Leased();
           dbl.addLeased(leased);
           return leased;
       }

      
    }
}
